<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use App\Repository\DictRepository;

/**
 * Dict
 *
 * @ORM\Table(name="dict", indexes={@ORM\Index(name="idx_d_value", columns={"d_value"}), @ORM\Index(name="idx_type_key", columns={"type", "d_key"}), @ORM\Index(name="idx_u_key", columns={"u_key"})})
 * @ORM\Entity(repositoryClass=DictRepository::class)
 */
class Dict
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false, options={"comment"=" 主键 "})
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="type", type="string", length=255, nullable=false, options={"comment"="字典名称"})
     */
    private $type;

    /**
     * @var string
     *
     * @ORM\Column(name="d_key", type="string", length=255, nullable=false)
     */
    private $dKey;

    /**
     * @var string
     *
     * @ORM\Column(name="d_value", type="string", length=255, nullable=false)
     */
    private $dValue;

    /**
     * @var string
     *
     * @ORM\Column(name="u_key", type="string", length=255, nullable=false, options={"comment"="唯一标识"})
     */
    private $uKey;

    /**
     * @var string
     *
     * @ORM\Column(name="remark", type="string", length=255, nullable=false, options={"comment"="备注"})
     */
    private $remark;

    /**
     * @var int|null
     *
     * @ORM\Column(name="is_del", type="integer", nullable=true, options={"comment"="0否1是"})
     */
    private $isDel;

    /**
     * @var int
     *
     * @ORM\Column(name="create_user", type="integer", nullable=false, options={"comment"=" 添加人 "})
     */
    private $createUser;

    /**
     * @var int
     *
     * @ORM\Column(name="update_user", type="integer", nullable=false, options={"comment"=" 修改人 "})
     */
    private $updateUser;

    /**
     * @var int
     *
     * @ORM\Column(name="create_time", type="integer", nullable=false, options={"comment"=" 添加时间 "})
     */
    private $createTime;

    /**
     * @var int
     *
     * @ORM\Column(name="update_time", type="integer", nullable=false, options={"comment"=" 修改时间 "})
     */
    private $updateTime;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getType(): ?string
    {
        return $this->type;
    }

    public function setType(string $type): static
    {
        $this->type = $type;

        return $this;
    }

    public function getDKey(): ?string
    {
        return $this->dKey;
    }

    public function setDKey(string $dKey): static
    {
        $this->dKey = $dKey;

        return $this;
    }

    public function getDValue(): ?string
    {
        return $this->dValue;
    }

    public function setDValue(string $dValue): static
    {
        $this->dValue = $dValue;

        return $this;
    }

    public function getUKey(): ?string
    {
        return $this->uKey;
    }

    public function setUKey(string $uKey): static
    {
        $this->uKey = $uKey;

        return $this;
    }

    public function getRemark(): ?string
    {
        return $this->remark;
    }

    public function setRemark(string $remark): static
    {
        $this->remark = $remark;

        return $this;
    }

    public function getIsDel(): ?int
    {
        return $this->isDel;
    }

    public function setIsDel(?int $isDel): static
    {
        $this->isDel = $isDel;

        return $this;
    }

    public function getCreateUser(): ?int
    {
        return $this->createUser;
    }

    public function setCreateUser(int $createUser): static
    {
        $this->createUser = $createUser;

        return $this;
    }

    public function getUpdateUser(): ?int
    {
        return $this->updateUser;
    }

    public function setUpdateUser(int $updateUser): static
    {
        $this->updateUser = $updateUser;

        return $this;
    }

    public function getCreateTime(): ?int
    {
        return $this->createTime;
    }

    public function setCreateTime(int $createTime): static
    {
        $this->createTime = $createTime;

        return $this;
    }

    public function getUpdateTime(): ?int
    {
        return $this->updateTime;
    }

    public function setUpdateTime(int $updateTime): static
    {
        $this->updateTime = $updateTime;

        return $this;
    }


}
